package cn.jiahua.hospital.mapper;

import cn.jiahua.hospital.dto.ScheduleDto;
import cn.jiahua.hospital.pojo.Schedule;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface ScheduleMapper {


    public Schedule getScheduleById(@Param(value = "id") Integer id);

    public List<Schedule> getScheduleListByMap(Map<String, Object> param);

    public List<ScheduleDto> getScheduleListByMap_hospital(Map<String, Object> param);

    public Integer getScheduleCountByMap_hospital(Map<String, Object> param);

    public Integer getScheduleCountByMap(Map<String, Object> param);

    public Integer insertSchedule(Schedule schedule);

    public Integer updateSchedule(Schedule schedule);

    public Integer updateSchedule_hospital(Schedule schedule);

    public Integer deleteScheduleById(@Param(value = "id") Integer id);

    public Integer batchDeleteSchedule(Map<String, List<String>> params);

    public Integer updateSchedule_doctorId(Schedule schedule);
}
